module IntroducesHelper

  def flag_text_for(flag)
    if flag == "description"
      "公司简介"
    elsif flag == "service"
      "服务介绍"
    elsif flag == "customer"
      "客户案例"
    elsif flag == "partner"
      "合作伙伴"
    else
      ""
    end

  end

  def flag_content_for(flag)
    case flag
    when "service"
      h2 = "Service"
      h1 = "服/务/介/绍"
    when "customer"
      h2 = "About us"
      h1 = "关/于/我/们"
    when "partner"
      h2 = "About us"
      h1 = "关/于/我/们"
    else
    end
    html = content_tag :h2, h2
    html += content_tag :h1, h1

    raw html
  end

end
